from django.db import models

# 商品表
class Goods(models.Model):
    name=models.CharField(max_length=32)
    price=models.DecimalField(max_digits=9,decimal_places=2)
    img=models.ImageField(upload_to='img')
    count=models.IntegerField(default=0)

    class Meta:
        db_table='goods'
